<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
  MYDCONN();
  form_pr('edtccContract','','','post');
	MYDCONN();
	$GET = $GLOBALS['MYD']->db_array("SELECT * FROM ccenter_contractos WHERE Ref = {$_GET['ccptID']}");
	mn_field('hidden','ED','ccptID',$GET[1]['Ref'],'','','','');
echo '<table  border="0" cellpadding="3" cellspacing="1">
  <tr>
    <td>Fornecedor<br>'.$GET[1]['RefProvider'];
	  echo '</td></tr>
  <tr>
    <td>Descrição<br>';
	mn_field('text','ED','Desc',$GET[1]['Description'],'38','','',''); 
	  echo '</td></tr>
  <tr>
    <td>Nº Cliente<br>';
	mn_field('text','ED','Client',$GET[1]['Client'],'','','',''); 
	  echo '</td></tr>
  <tr>
    <td>NIB<br>';
	mn_field('text','ED','NIB',$GET[1]['NIB'],'28','','',''); 
	  echo '</td></tr>
  <tr>
    <td>Situacao<br>';
	mn_field('hselect','ED','Status',$GET[1]['Status'],"Activo;Inactivo#2;5",'','',''); 
	  echo '</td></tr>
  <tr>
    <td width="20%">';
	mn_field('button','ED','saveContract','Adicionar','','','','" onclick="
		document.edtccContract.action=\'_response/rsproxy.php?pr=cdc_contracts&at=ED\';
		subform(\'edtccContract\',\'rsResponse\');'); 
	echo '</td>
    </tr>
 </table>
 <div id="rsResponse"></div>';